<section class="forum-section panel panel-default">
  {% set groups = data('HotGroup',{'count':6}) %}
  <h2 class="h4 section-title primary-line">创业论坛
    <a href="{{ path('group') }}" title="" class="section-more pull-right">进入论坛>></a>
  </h2>

  <div class="row">
    <div class="col-sm-7">
      {% set threads = data('HotThreads',{'count':8}) %}
      <div class="panel panel-default">
        <h3 class="panel-heading">热门讨论
          <a href="" class="more"><i class="es-icon es-icon-morehoriz"></i></a>
        </h3>

        <div class="panel-body">
          <div class="group-grids">
            <div class="grid row">
              <div class="col-xs-12">
                <ul class="hot-post-list">
                  {% for thread in threads %}
                  <!-- 单个讨论 -->
                  <li class="list-item">
                    <a href="{{ path('group_thread_show',{id:thread.group.id, threadId:thread.id}) }}" title="" class="post">
                      <h6 class="post-title text-wrap">
                        <span class="post-category">[{{ thread.group.title }}]</span>
                        {{ thread.title }}
                        <span class="post-people pull-right">By {{ thread.user.nickname }}</span>
                      </h6>
                    </a>
                  </li>
                  {% endfor %}
                </ul>
              </div>
            </div>

          </div>
        </div>
      </div>
    </div>
    <div class="col-sm-5">
      <div class="panel panel-default">
        <h3 class="panel-heading">热门版块
          <a href="{{ path('group') }}" class="more"><i class="es-icon es-icon-morehoriz"></i></a>
        </h3>

        <div class="panel-body">
          <div class="group-grids">
            {% for group in groups %}
            <!-- 单个版块 -->
            <div class="grid row">
              <p class="col-xs-3"><a href="" title="">
                {% if group.logo %}
                  <img class="avatar-square-sm" src="{{file_path(group.logo)}}">
                {% else %}
                  <img class="avatar-square-sm" src="{{asset('assets/img/default/group.png')}}">
                {% endif %}
              </a></p>
              <p class="title col-xs-9"><a class="link-light" href="{{ path('group_show',{id:group.id}) }}" title="{{ group.title }}" >{{ group.title }}</a><br />
                <span class="forum-data">今日主题：{{ group.threadNum }}  访问人数：{{ group.memberNum }}</span>
              </p>
            </div>
            {% endfor %}
          </div>
        </div>
      </div>
    </div>
    
  </div>
</section>
